﻿Imports DAL
Imports System.Linq

Public Class TestCrypting
    Dim crypt As String
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim bd As New BDCarpeDiemDataContext
        Dim employe = From emp In bd.Employes Select emp

        For Each emp In employe
            MsgBox(emp.Password)
            emp.Password = SimpleCrypt(emp.Password)
        Next
        bd.SubmitChanges()
    End Sub


End Class